import request from '@/utils/request'

// 查询产品注册列表
export function listDeviceregister(query) {
  return request({
    url: '/system/deviceregister/list',
    method: 'get',
    params: query
  })
}

// 查询产品注册详细
export function getDeviceregister(registerId) {
  return request({
    url: '/system/deviceregister/' + registerId,
    method: 'get'
  })
}

// 新增产品注册
export function addDeviceregister(data) {
  return request({
    url: '/system/deviceregister',
    method: 'post',
    data: data
  })
}

// 修改产品注册
export function updateDeviceregister(data) {
  return request({
    url: '/system/deviceregister',
    method: 'put',
    data: data
  })
}

// 删除产品注册
export function delDeviceregister(registerId) {
  return request({
    url: '/system/deviceregister/' + registerId,
    method: 'delete'
  })
}
